package com.gzmu.storage.serviceImpl;

import com.gzmu.storage.entity.Chest;
import com.gzmu.storage.mapper.ChestMapper;
import com.gzmu.storage.service.ChestService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaobo Yan
 * @since 2020-04-16
 */
@Service
public class ChestServiceImpl extends ServiceImpl<ChestMapper, Chest> implements ChestService {
    @Autowired
    private ChestMapper chestMapper;
    @Override
    public boolean insertAndUpdate(Chest chest) {
        return chestMapper.insertAndUpdate( chest );
    }
}
